<template>
  {{ text }}
</template>

<script setup>
import { getCurrentInstance, ref } from 'vue'
import { watchText } from '../../common/util'
defineOptions({ name: 'TplCom' })

const instance = getCurrentInstance()
const props = defineProps({
  schema: {
    type: Object,
    required: true
  }
})

const text = ref()
if (props.schema.body) {
  watchText(props.schema.body, instance, text)
}
</script>
